package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class LikePredicate implements Predicate {

    private int beginIndex;
    private int endIndex;
    private RowValuePredicand rowValuePredicand;
    private LikePredicatePart2 likePredicatePart2;

    public LikePredicate(RowValuePredicand rowValuePredicand,
                         LikePredicatePart2 likePredicatePart2) {
        this.beginIndex = rowValuePredicand.getBeginIndex();
        this.endIndex = likePredicatePart2.getEndIndex();
        this.rowValuePredicand = rowValuePredicand;
        this.likePredicatePart2 = likePredicatePart2;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public RowValuePredicand getRowValuePredicand() {
        return rowValuePredicand;
    }

    public LikePredicatePart2 getLikePredicatePart2() {
        return likePredicatePart2;
    }

}
